<?php
    $product = new Default_Model_Product();
    $list = $product->listHotProducts();
?>
<!-- Kênh tin-->
        <div class="ttct_top">
            <div class="pl20">hot! hot! hot!</div>
        </div>
        	
        <div class="dd_ctsp_mid">
            <div class="pa201">
            <div id="slideshow">
            <?php foreach($list as $value) : ?>
                <div class="new_product">
                    <a href="<?php echo $this->baseUrl('product/details?id=') . $value['product_id']; ?>" class="image_new_product"><img src="<?php echo $this->baseUrl('/public/files/product/') . $value['product_image']; ?>" /></a>
                                
                    <div class="content_new_product">
                        <a href="<?php echo $this->baseUrl('product/details?id=') . $value['product_id']; ?>" class="title_new_product"><?php echo $value['sort_name']; ?></a>
                                    
                        <div class="new_price">
                        <div class="new_sales"><?php echo $product->formatMoney($value['sales_price']); ?>đ</div>
                        <div class="new_original"><strike><?php echo $product->formatMoney($value['original_price']); ?>đ</strike></div>
                        </div>
                                        
                        <div class="new_content">
                        <?php
                            $content = preg_replace('/\s+/', ' ', $value['content_plaintext']);
                            $content = $product->cut_string($content, 600, 1);
                            echo $content;
                        ?>
                        </div>
                                        
                        <a href="<?php echo $this->baseUrl('product/details?id=') . $value['product_id']; ?>" class="continue"><img src="<?php echo $this->DirImg; ?>/continue.png" /></a>
                    </div>
                </div>
            <?php endforeach; ?>
            </div>
            </div>
        </div>
        
        <div class="dd_ctsp_bot"></div>